import request from "@/router/axios";
// 查询
export const getList = (current, size, params) => {
  return request({
    url: "/api/hg-quality/promy/page",
    method: "get",
    params: {
      current,
      size,
      ...params
    }
  });
};

// 接受质量问题
export const accept = data => {
  return request({
    url: "/api/hg-quality/promy/accept",
    method: "post",
    data: data
  });
};

// 驳回
export const reject = params => {
  return request({
    url: "/api/hg-quality/promy/reject",
    method: "post",
    params: {
      ...params
    }
  });
};

// 根据问题编号查询数据
export const getProcreate = proNo => {
  return request({
    url: "/api/hg-quality/procreate/list",
    method: "get",
    params: {
      proNo
    }
  });
};

export const detail = id => {
  return request({
    url: "/api/hg-quality/promy/detail",
    method: "get",
    params: {
      id
    }
  });
};
